
import java.io.*;
import java.util.*;

/**
 *
 */
public class User {

    private String name;

    protected PriceCalculator priceCalculator;

    public User(String name, PriceCalculator priceCalculator) {
        this.name = name;
        this.priceCalculator = priceCalculator;
    }

    public double getCalculate(Room room) {
        return priceCalculator.getCalculate(room);
    }
    public String getName() {
        return name;
    }

}
